//领取奖品
// @ts-ignore
export async function execute(client_id, message_json) {
    let characters = G.Characters.get_current_login_characters(client_id);
    let index = message_json["序号"] - 1;
    if (characters["奖池获得"].length > 0) {
        for (let index = 0; index < characters["奖池获得"].length; index++) {
            let element = characters["奖池获得"][index];
        G.Characters.add_item(characters["id"],element["名称"],element["给予数量"]);
        }
        ClientUtils.send_basic_prompt(client_id,"兑换成功");
         characters["奖池获得"] = [];
    }
}